// 小组件列表
export const WIDGET_LIST = [
  // {
  //   type: 'navbar',
  //   component: 'Navbar',
  //   label: '导航栏',
  //   commission: 0,
  //   icon: 'el-icon-more',
  //   default: {
  //     w: 300,
  //     h: 150,
  //     value: [],
  //   },
  // },
  {
    type: 'poster',
    component: 'Poster',
    label: '普通海报',
    commission: 0,
    icon: 'icon-poster-s.png',
    default: {
      w: 300,
      h: 150,
      value: [],
    },
  },
  {
    type: 'bannerBar',
    component: 'BannerBar',
    label: '轮播海报',
    commission: 0,
    icon: 'icon-pic-swiper-s.png',
    default: {
      w: 450,
      h: 300,
      value: [],
    },
  },
  {
    type: 'textposter',
    component: 'Textposter',
    label: '文字海报',
    commission: 0,
    icon: 'icon-text-poster-s.png',
    default: {
      w: 300,
      h: 200,
      value: [],
    },
  },
  {
    type: 'videoBar',
    component: 'VideoBar',
    label: '视频框',
    commission: 0,
    icon: 'icon-video-s.png',
    default: {
      w: 300,
      h: 200,
      value: [],
    },
  },
  {
    type: 'bannerVideo',
    component: 'BannerVideo',
    label: '轮播视频',
    commission: 0,
    icon: 'icon-video-swiper-s.png',
    default: {
      w: 600,
      h: 310,
      value: [],
    },
  },
  {
    type: 'bannerVideo1',
    component: 'BannerVideo1',
    label: '轮播影片',
    commission: 0,
    icon: 'icon-video-swiper-s.png',
    default: {
      w: 600,
      h: 310,
      index: 1,
      value: [],
    },
  },


];

// 定制组件列表
export const CUSTOM_WIDGET_LIST = [
  // 海报位
  {
    type: 'rowThreeColPoster',
    component: 'RowThreeColPoster',
    label: '一行三列普通海报',
    commission: 1,
    icon: 'icon-poster-s.png',
    default: {
      w: 1133,
      h: 212,
      value: [],
    },
  },
  {
    type: 'rowSixColPoster',
    component: 'RowSixColPoster',
    label: '一行六列普通海报',
    commission: 1,
    icon: 'icon-poster-s.png',
    default: {
      w: 1133,
      h: 70,
      value: [],
    },
  },
  {
    type: 'rowTenColPoster',
    component: 'RowTenColPoster',
    label: '一行十列普通海报',
    commission: 1,
    icon: 'icon-poster-s.png',
    default: {
      w: 1133,
      h: 75,
      value: [],
    },
  },
  // 文字海报
  {
    type: 'rowTwoColText',
    component: 'RowTwoColText',
    label: '一行两列文字海报',
    commission: 1,
    icon: 'icon-text-poster-s.png',
    default: {
      w: 1133,
      h: 332,
      value: [],
    },
  },
  {
    type: 'rowThreeColText',
    component: 'RowThreeColText',
    label: '一行三列文字海报',
    commission: 1,
    icon: 'icon-text-poster-s.png',
    default: {
      w: 1133,
      h: 286,
      value: [],
    },
  },
  {
    type: 'rowFourColText',
    component: 'RowFourColText',
    label: '一行四列文字海报',
    commission: 1,
    icon: 'icon-text-poster-s.png',
    default: {
      w: 1133,
      h: 217,
      value: [],
    },
  },
  {
    type: 'rowSixColText',
    component: 'RowSixColText',
    label: '一行六列文字海报',
    commission: 1,
    icon: 'icon-text-poster-s.png',
    default: {
      w: 1133,
      h: 319,
      value: [],
    },
  },
];

// 组件属性
export const WIDGET_ATTRLIST = {
  // 小组件
  'navbar': {
    title: '导航栏',
    com: 'NavbarAttr'
  },
  'poster': {
    title: '海报位',
    com: 'PosterAttr'
  },
  'textposter': {
    title: '文字海报',
    com: 'TextposterAttr'
  },
  'bannerBar': {
    title: '轮播海报',
    com: 'BannerBarAttr'
  },
  'videoBar': {
    title: '视频框',
    com: 'VideoBarAttr'
  },
  'bannerVideo': {
    title: '轮播视频',
    com: 'BannerVideoAttr'
  },
  'bannerVideo1': {
    title: '轮播视频-定制',
    com: 'BannerVideoAttr1'
  },

  // 定制组件-普通海报
  'rowThreeColPoster': {
    title: '一行三列普通海报',
    com: 'RowThreeColPosterAttr'
  },
  'rowSixColPoster': {
    title: '一行六列普通海报',
    com: 'RowSixColPosterAttr'
  },
  'rowTenColPoster': {
    title: '一行十列普通海报',
    com: 'RowTenColPosterAttr'
  },
  // 定制组件-文字海报
  'rowTwoColText': {
    title: '一行两列文字海报',
    com: 'RowTwoColTextAttr'
  },
  'rowThreeColText': {
    title: '一行三列文字海报',
    com: 'RowThreeColTextAttr'
  },
  'rowFourColText': {
    title: '一行四列文字海报',
    com: 'RowFourColTextAttr'
  },
  'rowSixColText': {
    title: '一行六列文字海报',
    com: 'RowSixColTextAttr'
  },
}

// 详情、列表页
export const DETAIL_LIST_WIDGET = [
  {
    type:'detailBox',
    component: 'DetailBox',
    floorName: '',
    floorNum: 1, 
    label: '影片详情',
    icon: 'icon-titile-s.png',
    default: {
      w: 1115,
      h: 480,
      value: [],
      isShow: 1,// 0：展示  1：取消
      recommendList:[]//推荐位数据
    },
  },
  {
    type: 'poster',
    component: 'Poster',
    label: '普通海报',
    floorName: '',
    floorNum: 1, 
    icon: 'icon-poster-s.png',
    default: {
      w: 300,
      h: 150,
      value: [],
    },
  },
  {
    type: 'textposter',
    component: 'Textposter',
    label: '文字海报',
    floorName: '',
    floorNum: 1, 
    icon: 'icon-text-poster-s.png',
    default: {
      w: 300,
      h: 200,
      value: [],
    },
  },
  {
    type:'navBox1',
    component: 'NavBox1',
    floorName: '',
    floorNum: 1, 
    label: '导航栏1',
    icon: 'icon-navigation-s.png',
    default: {
      w: 1100,
      h: 80,
      value: [],
    },
  },
  {
    type:'navBox2',
    component: 'NavBox2',
    floorName: '',
    floorNum: 1, 
    label: '导航栏2',
    icon: 'icon-navigation-s.png',
    default: {
      w: 160,
      h: 720,
      value: [],
    },
  },
  {
    type:'navBox3',
    component: 'NavBox3',
    floorName: '',
    floorNum: 1, 
    label: '导航栏3',
    icon: 'icon-navigation-s.png',
    default: {
      w: 180,
      h: 720,
      value: [],
    },
  },
  {
    type:'listBox',
    component: 'ListBox',
    floorName: '',
    floorNum: 1, 
    label: '列表页',
    icon: 'icon-marquee-s.png',
    default: {
      w: 1000,
      h: 720,
      value: [],
    },
  },
]
// 详情、列表页属性
export const DETAIL_ATTRLIST = {
  // 小组件
  'detailBox': {
    title: '影片详情信息',
    com: 'DetailBoxAttr'
  },
  'poster': {
    title: '海报位',
    com: 'PosterAttr'
  },
  'textposter': {
    title: '文字海报',
    com: 'TextposterAttr'
  },
  'navBox1': {
    title: '导航栏1',
    com: 'NavBox1Attr'
  },
  'navBox2': {
    title: '导航栏2',
    com: 'NavBox2Attr'
  },
  'navBox3': {
    title: '导航栏3',
    com: 'NavBox3Attr'
  },
  'listBox': {
    title: '列表页',
    com: 'ListBoxAttr'
  },
}
